package com.gome.service;

import com.gome.entity.Menu;
import com.gome.entity.RoleMenu;
import com.gome.mapper.RoleMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleMenuService  {
    @Autowired
    public RoleMenuMapper RoleMenuMapper;

    public  List<RoleMenu> selectRoleMenuByRoleMenu(RoleMenu rm) {
        List<RoleMenu> roleMenuList=  RoleMenuMapper.selectRoleMenuByRoleMenu(rm);
        return  roleMenuList;
    }

    public void addRoleMenuByMenu(Menu menu) {
        RoleMenuMapper.addRoleMenuByMenu(menu);

    }
}
